<!doctype html>
<html 
      lang="en"
      dir="ltr">
  <head>
    <meta name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com">
    <meta name="google-signin-scope"
          content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award">
    <meta property="og:site_name" content="Android Developers">
    <meta property="og:type" content="website"><meta name="theme-color" content="#3ddc84"><meta charset="utf-8">
    <meta content="IE=Edge" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    

    <link rel="manifest" href="/_pwa/android/manifest.json"
          crossorigin="use-credentials">
    <link rel="preconnect" href="//www.gstatic.com" crossorigin>
    <link rel="preconnect" href="//fonts.gstatic.com" crossorigin>
    <link rel="preconnect" href="//fonts.googleapis.com" crossorigin>
    <link rel="preconnect" href="//apis.google.com" crossorigin>
    <link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500,600,700|Google+Sans+Text:400,400italic,500,500italic,600,600italic,700,700italic|Roboto+Mono:400,500,700&display=swap">
      <link rel="stylesheet"
            href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/css/rebrand-app.css">
      <link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/favicon.svg">
    <link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/touchicon-180.png"><link rel="canonical" href="https://developer.android.com/reference/android/view/autofill/AutofillValue"><link rel="search" type="application/opensearchdescription+xml"
            title="Android Developers" href="https://developer.android.com/s/opensearch.xml">
      <link rel="alternate" hreflang="en"
          href="https://developer.android.com/reference/android/view/autofill/AutofillValue" /><link rel="alternate" hreflang="x-default" href="https://developer.android.com/reference/android/view/autofill/AutofillValue" /><title>AutofillValue &nbsp;|&nbsp; Android Developers</title>

<meta property="og:title" content="AutofillValue &nbsp;|&nbsp; Android Developers"><meta property="og:url" content="https://developer.android.com/reference/android/view/autofill/AutofillValue"><meta property="og:image" content="https://developer.android.com/static/images/social/android-developers.png">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image">
  
  
      
  
  
  
  




    
      <link rel="stylesheet" href="/extras.css"></head>
  <body class=""
        template="page"
        theme="android-theme"
        type="reference"
        
        
        
        layout="docs"
        
        
        
        
        display-toc
        pending>
    <devsite-progress type="indeterminate" id="app-progress"></devsite-progress>
  
    <section class="devsite-wrapper">
      <section id="gc-wrapper">
        <main role="main" class="devsite-main-content"
            
              has-book-nav
              has-sidebar
            >
          
          
          <div class="devsite-sidebar">
            <div class="devsite-sidebar-content">
                
                <devsite-toc class="devsite-nav"
                            role="navigation"
                            aria-label="On this page"
                            depth="2"
                            scrollbars
                  ></devsite-toc>
                <devsite-recommendations-sidebar class="nocontent devsite-nav">
                </devsite-recommendations-sidebar>
            </div>
          </div>
          
          <devsite-content>
            
              











<article class="devsite-article"><style>
      /* Styles inlined from /assets/css/reference-docs.css */
:root {
  --primary-font-family: Google Sans Text, Noto Sans, Noto Sans JP,
    Noto Sans KR, Noto Naskh Arabic, Noto Sans Thai, Noto Sans Hebrew,
    Noto Sans Bengali, sans-serif;
}

/* the "added in" info on all APIs */
.api-level {
  float: right;
  font-size: smaller;
  margin-top: -40px;
}

/* the "added in" block at the top of the page */
#api-info-block .api-level {
  margin-top: 0;
}

/* The metadata block displayed at the top of the page and on
   methods/functions. Used by Dackka */
#metadata-info-block {
  font-size: smaller;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#header-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* The version metadata block contains "Added in" and "Deprecated in" lines,
   which should both be right-aligned. Used by Dackka. */
#version-metadata > div {
  text-align: end;
}

/* The block containing a method name and its associated metadata. Used by
   Dackka */
.api-name-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  /* These margins reflect the margins set for non-Dackka generated refdocs */
  margin-top: 60px;
  margin-bottom: 16px;
}

/* The block next to a method / function name in the details section that
   displays the platform icons and the metadata block. Used by Dackka */
.api-name-platform-and-metadata {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

/* The platform icons that are displayed next to a method / function name in the
   details section. Used by Dackka */
.api-name-platform-icons {
  display: flex;
}

/* Zero out the top and bottom margins of the h3 contained in api-name-block;
   these margins are set in [the parent] .api-name-block div, since that also
   contains additional information that needs to be aligned with the h3. */
.api-name-block h3 {
  margin-top: 0;
  margin-bottom: 0;
}

@media screen and (max-width: 1000px) {
  .api-level {
    float: none;
    margin-top: 0;
  }
  #api-info-block .api-level {
    margin-bottom: 20px;
  }
}

.api-level a,
.api-level a:active,
.api-level a:visited {
  color: #222;
}

.api-level a:hover {
  color: #888;
}

/* This element is obsolete now that devsite provides TOC */
#api-info-block .sum-details-links {
  display: none;
}


/* The table that shows this class's inheritance tree */

.jd-inheritance-table tr,
.jd-inheritance-table tr td {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

.jd-inheritance-table .jd-inheritance-space {
  width: 2em;
}

/* The devsite expandable widget */

.expand-control:not(button):not(.button) {
  color: inherit;
  cursor: pointer;
  padding-left: 24px;
  position: relative;
}

.expand-control::before {
  background: url(/images/styles/disclosure_down.png) no-repeat center center;
  background-size: 34px 34px;
  color: transparent;
  content: '';
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 20px;
}

.expand-control.exw-expanded::before {
  background: url(/images/styles/disclosure_up.png) no-repeat center center;
}

/* Known subclasses list */

.jd-sumtable-subclasses #subclasses-direct,
.jd-sumtable-subclasses #subclasses-indirect {
  /* left margin matches width of the toggle image,
     so this section aligns with the text above */
  margin: 0 0 0 24px;
}

.jd-sumtable-subclasses .expand-control.exw-expanded + .showalways {
  /* Hide the comma list when expanded to show the table */
  display: none;
}

.jd-sumtable-subclasses tr,
.jd-sumtable-subclasses td {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

#subclasses-direct-summary,
#subclasses-indirect-summary {
  padding-left: 24px;
}

.jd-sumtable-expando td {
  border: solid 1px #ddd;
  padding: 4px;
}

.jd-inherited-apis .exw-expanded-content {
  /* Force override for some lengthy devsite style selectors */
  padding-left: 24px !important;
  margin-top: 12px !important;
}


/* Styles for legacy doclava HTML that uses custom expando.
 * The list of direct/indirect subclasses does not expand at all,
 * and the list of inherited members/methods is expanded by default. */

.jd-sumtable-subclasses #subclasses-direct-list,
.jd-sumtable-subclasses #subclasses-indirect-list {
  /* Force line-wraps for CSVs with no spaces */
  word-break: break-word;
}

:not(devsite-expandable) > #subclasses-direct-summary,
:not(devsite-expandable) > #subclasses-indirect-summary {
  display: none !important;
}

.jd-sumtable #subclasses-direct.jd-expando-trigger,
.jd-sumtable #subclasses-indirect.jd-expando-trigger{
  margin: 0;
}


/* Force the broken legacy expandos into something that looks WAI */

.jd-expando-trigger {
  display: inline-block;
  height: 0;
  margin: 0;
  padding-top: 10px;
  width: 24px;
}

.jd-expando-trigger img {
  /* display: none; */
  height: inherit;
}

.jd-expando-trigger ~ div > div {
  display: block !important; /* Force all inline-hidden divs to appear */
}

table.responsive td td:first-child,
table.responsive td tr:last-child td,
table.responsive td tr:first-child td{
  padding: 7px 8px 8px;
}

.data-reference-resources-wrapper {
  display: none;
}

#lattrs td:first-child,
.inhtable td:first-child {
  white-space: nowrap;
}

#lattrs td+td,
.inhtable td+td {
  white-space: normal;
}


/* Styles to highlight the preview APIs.

   These must be updated with each letter-appropriate preview. */

/* Style headings to gold preview color */
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) h3,
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) h3,
[data-version-added="UpsideDownCake"] .api-title,
.apilevel-UpsideDownCake h3 {
  color: #f5ba15;
}

/* Style "Added in ___" links to gold preview color */
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) .api-level a,
body.apilevel-UpsideDownCake #api-info-block .api-level a,
#jd-content[data-version-added="UpsideDownCake"]:not(.devsite-future-version) .api-level a,
#api-info-block .api-level a[data-version-added="UpsideDownCake"],
.api-level a[data-version-added="UpsideDownCake"],
.apilevel-UpsideDownCake .api-level a {
  color: #f5ba15 !important;
  font-size: 14px;
  font-weight:900;
}

/* Clear backgrounds for table rows */
#jd-content:not(.devsite-future-version) tr.apilevel-UpsideDownCake:not(.devsite-future-version),
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) tr,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr.apilevel-UpsideDownCake:not(.devsite-future-version),
body.apilevel-UpsideDownCake #jd-content table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr,
#jd-content:not(.devsite-future-version) tr[data-version-added="UpsideDownCake"]:not(.devsite-future-version),
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) tr,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr[data-version-added="UpsideDownCake"]:not(.devsite-future-version),
#jd-content[data-version-added="UpsideDownCake"] table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr {
  background: none;
}

/* Add gold preview background color to table headings and cells */
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) td,
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) th,
body.apilevel-UpsideDownCake #jd-content:not(.devsite-future-version) table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr:not(.devsite-future-version) td,
body.apilevel-UpsideDownCake #jd-content:not(.devsite-future-version) th,
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) td,
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) th,
#jd-content[data-version-added="UpsideDownCake"]:not(.devsite-future-version) table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr:not(.devsite-future-version) td,
#jd-content[data-version-added="UpsideDownCake"]:not(.devsite-future-version) th {
  background: rgba(245, 185, 16, .2);
}

/* Add gold preview background color to additional table cells */
#jd-content:not(.devsite-future-version) tr.apilevel-UpsideDownCake:not(.devsite-future-version) td,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) .apilevel-UpsideDownCake:not(.devsite-future-version) td,
#jd-content:not(.devsite-future-version) tr[data-version-added="UpsideDownCake"]:not(.devsite-future-version) td,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) td {
  background: rgba(245, 185, 16, .2);
}

/* End of styles to highlight the preview APIs */


/* Misc styles used in the reference */

h1.api-title {
  margin-bottom: 0;
}

h2.api-section:not(#summary) {
  margin-top: 60px;
  margin-bottom: -20px;
}

h3.api-name {
  margin-top: 60px;
}

.nolist, .nolist ul, .nolist ol {
  list-style: none;
  padding-left: 0;
}

table.inhtable>tbody>tr>td {
  padding-left: 0;
}

table.inhtable>tbody>tr>td div:first-of-type {
  padding-left: 12px;
}

.api-item {
  position: relative;
}

.api-item > .api-name {
  padding-right: 80px;
}

.api-item > .kotlin-platform {
  inset-inline-end: 0;
  position: absolute;
  top: 0;
}

.kotlin-platform {
  background: #ebf7fe;
  border-radius: 16px;
  color: #1769e0;
  display: inline-block;
  font: 500 12px / 32px var(--primary-font-family);
  height: 32px;
  text-align: center;
  width: 32px;
}

      </style>
  
  
  
  

  <div class="devsite-article-meta nocontent" role="navigation">
    
    
    <ul class="devsite-breadcrumb-list"
  
    aria-label="Breadcrumb">
  
  <li class="devsite-breadcrumb-item
             ">
    
    
    
      
  <a href="https://developer.android.com/"
      
        class="devsite-breadcrumb-link gc-analytics-event"
      
        data-category="Site-Wide Custom Events"
      
        data-label="Breadcrumbs"
      
        data-value="1"
      
        track-type="globalNav"
      
        track-name="breadcrumb"
      
        track-metadata-position="1"
      
        track-metadata-eventdetail="Android Developers"
      
    >
    
        Android Developers
      
  </a>
  
    
  </li>
  
  <li class="devsite-breadcrumb-item
             ">
    
      
      <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div>
    
    
    
      
  <a href="https://developer.android.com/develop"
      
        class="devsite-breadcrumb-link gc-analytics-event"
      
        data-category="Site-Wide Custom Events"
      
        data-label="Breadcrumbs"
      
        data-value="2"
      
        track-type="globalNav"
      
        track-name="breadcrumb"
      
        track-metadata-position="2"
      
        track-metadata-eventdetail=""
      
    >
    
        Develop
      
  </a>
  
    
  </li>
  
  <li class="devsite-breadcrumb-item
             ">
    
      
      <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div>
    
    
    
      
  <a href="https://developer.android.com/reference"
      
        class="devsite-breadcrumb-link gc-analytics-event"
      
        data-category="Site-Wide Custom Events"
      
        data-label="Breadcrumbs"
      
        data-value="3"
      
        track-type="globalNav"
      
        track-name="breadcrumb"
      
        track-metadata-position="3"
      
        track-metadata-eventdetail=""
      
    >
    
        Reference
      
  </a>
  
    
  </li>
  
</ul>
    
      
    <devsite-thumb-rating position="header">
    </devsite-thumb-rating>
  
    
  </div>
  <devsite-feature-tooltip
          ack-key="AckCollectionsBookmarkTooltipDismiss"
          analytics-category="Site-Wide Custom Events"
          analytics-action-show="Callout Profile displayed"
          analytics-action-close="Callout Profile dismissed"
          analytics-label="Create Collection Callout"
          class="devsite-page-bookmark-tooltip nocontent"
          dismiss-button="true"
          id="devsite-collections-dropdown"

          
          dismiss-button-text="Dismiss"

          
          close-button-text="Got it">

        
        <devsite-bookmark></devsite-bookmark>

        <span slot="popout-heading">
          
          Stay organized with collections
        </span>
        <span slot="popout-contents">
          
          Save and categorize content based on your preferences.
        </span>
      </devsite-feature-tooltip>
    
  

  <devsite-toc class="devsite-nav"
    depth="2"
    devsite-toc-embedded
    >
  </devsite-toc>
  
    
    <devsite-recommendations-dropdown class="nocontent"></devsite-recommendations-dropdown>
    
  

  






<div class="devsite-article-body clearfix
  devsite-no-page-title">

  
    

<div itemscope itemtype="http://developers.google.com/ReferenceObject">
<!-- This DIV closes at the end of the BODY -->
  <meta itemprop="name" content="android.view.autofill.AutofillValue" />
  <meta itemprop="path" content="API level 26" />



<div id="naMessage"></div>

<div id="api-info-block">
<div class="api-level">
  
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  
  
  
  

</div>



  
   
  
  
  
  

  
   
  
  
   
  
  
  


<div class="sum-details-links">

Summary:






  <a href="#inhconstants">Inherited Constants</a>
  


  &#124; <a href="#lfields">Fields</a>
  





  &#124; <a href="#pubmethods">Methods</a>
  



  &#124; <a href="#inhmethods">Inherited Methods</a>


</div><!-- end sum-details-links -->
</div><!-- end api-info-block -->

<div id="jd-content" data-version-added="26" >

<!-- ======== START OF CLASS DATA ======== -->

<h1 class="api-title" id="autofillvalue" data-text="AutofillValue">AutofillValue</h1>




























<div style="font-size:medium; margin-bottom:40px; border-top:1px solid black;"
     class="nocontent">
<div style="float:right">



<a href="/reference/kotlin/android/view/autofill/AutofillValue" title="View this page in Kotlin" >Kotlin</a>
<span style="color: #ddd; padding: 0em .5em;">|</span><span style="color: black; font-weight:bold">Java</span>


</div>
</div>




<p>
<code class="api-signature" translate="no" dir="ltr">
  public
  
  final
  
  class
  AutofillValue
</code>
<br>


<code class="api-signature" translate="no" dir="ltr">
  
    extends <a href="/reference/java/lang/Object">Object</a>
  
  
  
</code>

<code class="api-signature" translate="no" dir="ltr">
  
  
      implements
      
        <a href="/reference/android/os/Parcelable">Parcelable</a>
      
  
  
</code>

</p><table class="jd-inheritance-table">


  <tr>
    
    <td colspan="2" class="jd-inheritance-class-cell"><a href="/reference/java/lang/Object">java.lang.Object</a>
    </td>
  </tr>
  

  <tr>
    
      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    
    <td colspan="1" class="jd-inheritance-class-cell">android.view.autofill.AutofillValue
    </td>
  </tr>
  

</table>
  

    

<br><hr>


  <p>Abstracts how a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> can be autofilled by an
 <code translate="no" dir="ltr"><a href="/reference/android/service/autofill/AutofillService">AutofillService</a></code>.

 <p>Each <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> is associated with a <code translate="no" dir="ltr">type</code>, as defined by
 <code translate="no" dir="ltr"><a href="/reference/android/view/View#getAutofillType()">View#getAutofillType()</a></code>.</p>









<h2 class="api-section" id="summary" data-text="Summary">Summary</h2>
















<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<table id="inhconstants" class="responsive constants inhtable">
<tr><th><h3 id="inherited-constants" data-text="Inherited constants">Inherited constants</h3></th></tr>




  <tr  >
  <td>
    <div class="expandable jd-inherited-apis">
      <span class="expand-control">From interface
        <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable">android.os.Parcelable</a></code>
      </span>
      <table class="responsive">
        

    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR">CONTENTS_FILE_DESCRIPTOR</a></code>
          <p>Descriptor bit used with <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#describeContents()">describeContents()</a></code>: indicates that
 the Parcelable object's flattened representation includes a file descriptor.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE">PARCELABLE_WRITE_RETURN_VALUE</a></code>
          <p>Flag for use with <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)">writeToParcel(Parcel, int)</a></code>: the object being written
 is a return value, that is the result of a function such as
 "<code translate="no" dir="ltr">Parcelable someFunction()</code>",
 "<code translate="no" dir="ltr">void someFunction(out Parcelable)</code>", or
 "<code translate="no" dir="ltr">void someFunction(inout Parcelable)</code>".
          
    
</p>
        </td>
    </tr>
    
    

      </table>
    </div>
  </td></tr>


</table>




<!-- =========== FIELD SUMMARY =========== -->
<table id="lfields" class="responsive properties">
<tr><th colspan="2"><h3 id="fields" data-text="Fields">Fields</h3></th></tr>



  <tr data-version-added="26" >
    <td><code translate="no" dir="ltr">
    public
    static
    final
    <a href="/reference/android/os/Parcelable.Creator">Creator</a>&lt;<a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a>&gt;</code></td>
    <td width="100%">
      <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue#CREATOR">CREATOR</a></code>
      <p>
      
    
</p>
    </td>
  </tr>
  


</table>











<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="responsive methods">
<tr><th colspan="2"><h3 id="public-methods" data-text="Public methods">Public methods</h3></th></tr>



  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#describeContents()">describeContents</a>()
      </code>
      
        <p>Describe the kinds of special objects contained in this Parcelable
 instance's marshaled representation.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#equals(java.lang.Object)">equals</a>(<a href="/reference/java/lang/Object">Object</a> obj)
      </code>
      
        <p>Indicates whether some other object is "equal to" this one.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        static
        
        
        <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#forDate(long)">forDate</a>(long value)
      </code>
      
        <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a date.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        static
        
        
        <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#forList(int)">forList</a>(int value)
      </code>
      
        <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a selection
 list.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        static
        
        
        <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#forText(java.lang.CharSequence)">forText</a>(<a href="/reference/java/lang/CharSequence">CharSequence</a> value)
      </code>
      
        <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a text field.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        static
        
        
        <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#forToggle(boolean)">forToggle</a>(boolean value)
      </code>
      
        <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a toggable
 field.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        long</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#getDateValue()">getDateValue</a>()
      </code>
      
        <p>Gets the value to autofill a date field.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#getListValue()">getListValue</a>()
      </code>
      
        <p>Gets the value to autofill a selection list field.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/CharSequence">CharSequence</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#getTextValue()">getTextValue</a>()
      </code>
      
        <p>Gets the value to autofill a text field.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#getToggleValue()">getToggleValue</a>()
      </code>
      
        <p>Gets the value to autofill a toggable field.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#hashCode()">hashCode</a>()
      </code>
      
        <p>Returns a hash code value for the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#isDate()">isDate</a>()
      </code>
      
        <p>Checks if this is a date value.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#isList()">isList</a>()
      </code>
      
        <p>Checks if this is a list value.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#isText()">isText</a>()
      </code>
      
        <p>Checks if this is a text value.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#isToggle()">isToggle</a>()
      </code>
      
        <p>Checks if this is a toggle value.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#toString()">toString</a>()
      </code>
      
        <p>Returns a string representation of the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/autofill/AutofillValue#writeToParcel(android.os.Parcel,%20int)">writeToParcel</a>(<a href="/reference/android/os/Parcel">Parcel</a> parcel, int flags)
      </code>
      
        <p>Flatten this object in to a Parcel.
        
    
</p>
      
    </td>
  </tr>
  


</table>







<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="responsive methods inhtable">
<tr><th><h3 id="inherited-methods" data-text="Inherited methods">Inherited methods</h3></th></tr>


<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From class
      <code translate="no" dir="ltr">
        
          <a href="/reference/java/lang/Object">java.lang.Object</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#clone()">clone</a>()
      </code>
      
        <p>Creates and returns a copy of this object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#equals(java.lang.Object)">equals</a>(<a href="/reference/java/lang/Object">Object</a> obj)
      </code>
      
        <p>Indicates whether some other object is "equal to" this one.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#finalize()">finalize</a>()
      </code>
      
        <p>Called by the garbage collector on an object when garbage collection
 determines that there are no more references to the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/java/lang/Class">Class</a>&lt;?&gt;</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#getClass()">getClass</a>()
      </code>
      
        <p>Returns the runtime class of this <code translate="no" dir="ltr">Object</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#hashCode()">hashCode</a>()
      </code>
      
        <p>Returns a hash code value for the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#notify()">notify</a>()
      </code>
      
        <p>Wakes up a single thread that is waiting on this object's
 monitor.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#notifyAll()">notifyAll</a>()
      </code>
      
        <p>Wakes up all threads that are waiting on this object's monitor.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#toString()">toString</a>()
      </code>
      
        <p>Returns a string representation of the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#wait(long,%20int)">wait</a>(long timeoutMillis, int nanos)
      </code>
      
        <p>Causes the current thread to wait until it is awakened, typically
 by being <em>notified</em> or <em>interrupted</em>, or until a
 certain amount of real time has elapsed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#wait(long)">wait</a>(long timeoutMillis)
      </code>
      
        <p>Causes the current thread to wait until it is awakened, typically
 by being <em>notified</em> or <em>interrupted</em>, or until a
 certain amount of real time has elapsed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#wait()">wait</a>()
      </code>
      
        <p>Causes the current thread to wait until it is awakened, typically
 by being <em>notified</em> or <em>interrupted</em>.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/os/Parcelable">android.os.Parcelable</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/os/Parcelable#describeContents()">describeContents</a>()
      </code>
      
        <p>Describe the kinds of special objects contained in this Parcelable
 instance's marshaled representation.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)">writeToParcel</a>(<a href="/reference/android/os/Parcel">Parcel</a> dest, int flags)
      </code>
      
        <p>Flatten this object in to a Parcel.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>


</table>



<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- Fields -->


<!-- ========= FIELD DETAIL ======== -->
<h2 class="api-section" id="fields_1" data-text="Fields">Fields</h2>


<div data-version-added="26" >
    <h3 class="api-name" id="CREATOR" data-text="CREATOR">CREATOR</h3>
    <div class="api-level">
      
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public static final <a href="/reference/android/os/Parcelable.Creator">Creator</a>&lt;<a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a>&gt; CREATOR</pre>
    
    

    
  <p></p></p>

    
</div>




<!-- Public ctors -->



<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2 class="api-section" id="public-methods_1" data-text="Public methods">Public methods</h2>


<div data-version-added="26">
    <h3 class="api-name" id="describeContents()" data-text="describeContents">describeContents</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public int describeContents ()</pre>
    
    

    
  <p>Describe the kinds of special objects contained in this Parcelable
 instance's marshaled representation. For example, if the object will
 include a file descriptor in the output of <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)">writeToParcel(android.os.Parcel, int)</a></code>,
 the return value of this method must include the
 <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR">CONTENTS_FILE_DESCRIPTOR</a></code> bit.</p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">a bitmask indicating the set of special object types marshaled
 by this Parcelable object instance.
 
 Value is either <code translate="no" dir="ltr">0</code> or <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR">CONTENTS_FILE_DESCRIPTOR</a></code></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="equals(java.lang.Object)" data-text="equals">equals</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public boolean equals (<a href="/reference/java/lang/Object">Object</a> obj)</pre>
    
    

    
  <p>Indicates whether some other object is "equal to" this one.
 <p>
 The <code translate="no" dir="ltr">equals</code> method implements an equivalence relation
 on non-null object references:
 <ul>
 <li>It is <i>reflexive</i>: for any non-null reference value
     <code translate="no" dir="ltr">x</code>, <code translate="no" dir="ltr">x.equals(x)</code> should return
     <code translate="no" dir="ltr">true</code>.
 <li>It is <i>symmetric</i>: for any non-null reference values
     <code translate="no" dir="ltr">x</code> and <code translate="no" dir="ltr">y</code>, <code translate="no" dir="ltr">x.equals(y)</code>
     should return <code translate="no" dir="ltr">true</code> if and only if
     <code translate="no" dir="ltr">y.equals(x)</code> returns <code translate="no" dir="ltr">true</code>.
 <li>It is <i>transitive</i>: for any non-null reference values
     <code translate="no" dir="ltr">x</code>, <code translate="no" dir="ltr">y</code>, and <code translate="no" dir="ltr">z</code>, if
     <code translate="no" dir="ltr">x.equals(y)</code> returns <code translate="no" dir="ltr">true</code> and
     <code translate="no" dir="ltr">y.equals(z)</code> returns <code translate="no" dir="ltr">true</code>, then
     <code translate="no" dir="ltr">x.equals(z)</code> should return <code translate="no" dir="ltr">true</code>.
 <li>It is <i>consistent</i>: for any non-null reference values
     <code translate="no" dir="ltr">x</code> and <code translate="no" dir="ltr">y</code>, multiple invocations of
     <code translate="no" dir="ltr">x.equals(y)</code> consistently return <code translate="no" dir="ltr">true</code>
     or consistently return <code translate="no" dir="ltr">false</code>, provided no
     information used in <code translate="no" dir="ltr">equals</code> comparisons on the
     objects is modified.
 <li>For any non-null reference value <code translate="no" dir="ltr">x</code>,
     <code translate="no" dir="ltr">x.equals(null)</code> should return <code translate="no" dir="ltr">false</code>.
 </ul>
 <p>
 The <code translate="no" dir="ltr">equals</code> method for class <code translate="no" dir="ltr">Object</code> implements
 the most discriminating possible equivalence relation on objects;
 that is, for any non-null reference values <code translate="no" dir="ltr">x</code> and
 <code translate="no" dir="ltr">y</code>, this method returns <code translate="no" dir="ltr">true</code> if and only
 if <code translate="no" dir="ltr">x</code> and <code translate="no" dir="ltr">y</code> refer to the same object
 (<code translate="no" dir="ltr">x == y</code> has the value <code translate="no" dir="ltr">true</code>).
 <p>
 Note that it is generally necessary to override the <code translate="no" dir="ltr">hashCode</code>
 method whenever this method is overridden, so as to maintain the
 general contract for the <code translate="no" dir="ltr">hashCode</code> method, which states
 that equal objects must have equal hash codes.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">obj</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">Object</code>: This value may be <code translate="no" dir="ltr">null</code>.</p></td>
      </tr>
    </table>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">boolean</code></td>
        <td width="100%"><code translate="no" dir="ltr">true</code> if this object is the same as the obj
          argument; <code translate="no" dir="ltr">false</code> otherwise.</p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="forDate(long)" data-text="forDate">forDate</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public static <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a> forDate (long value)</pre>
    
    

    
  <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a date.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_DATE">View#AUTOFILL_TYPE_DATE</a></code> for more info.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">value</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">long</code> <!-- no parameter comment --></p></td>
      </tr>
    </table>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="forList(int)" data-text="forList">forList</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public static <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a> forList (int value)</pre>
    
    

    
  <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a selection
 list.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_LIST">View#AUTOFILL_TYPE_LIST</a></code> for more info.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">value</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">int</code> <!-- no parameter comment --></p></td>
      </tr>
    </table>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="forText(java.lang.CharSequence)" data-text="forText">forText</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public static <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a> forText (<a href="/reference/java/lang/CharSequence">CharSequence</a> value)</pre>
    
    

    
  <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a text field.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_TEXT">View#AUTOFILL_TYPE_TEXT</a></code> for more info.

 <p><b>Note:</b> This method is not thread safe and can throw an exception if the
 <code translate="no" dir="ltr">value</code> is modified by a different thread before it returns.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">value</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">CharSequence</code>: This value may be <code translate="no" dir="ltr">null</code>.</p></td>
      </tr>
    </table>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="forToggle(boolean)" data-text="forToggle">forToggle</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public static <a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a> forToggle (boolean value)</pre>
    
    

    
  <p>Creates a new <code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code> to autofill a <code translate="no" dir="ltr"><a href="/reference/android/view/View">View</a></code> representing a toggable
 field.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_TOGGLE">View#AUTOFILL_TYPE_TOGGLE</a></code> for more info.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">value</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">boolean</code> <!-- no parameter comment --></p></td>
      </tr>
    </table>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr"><a href="/reference/android/view/autofill/AutofillValue">AutofillValue</a></code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="getDateValue()" data-text="getDateValue">getDateValue</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public long getDateValue ()</pre>
    
    

    
  <p>Gets the value to autofill a date field.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_DATE">View#AUTOFILL_TYPE_DATE</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">long</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>
      <table class="responsive">
      <tr><th colspan=2>Throws</th></tr>
        <tr>
          <td><code translate="no" dir="ltr"><a href="/reference/java/lang/IllegalStateException">IllegalStateException</a></code></td>
          <td width="100%">if the value is not a date value</td>
        </tr>
      </table>
  

</div>

<div data-version-added="26">
    <h3 class="api-name" id="getListValue()" data-text="getListValue">getListValue</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public int getListValue ()</pre>
    
    

    
  <p>Gets the value to autofill a selection list field.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_LIST">View#AUTOFILL_TYPE_LIST</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>
      <table class="responsive">
      <tr><th colspan=2>Throws</th></tr>
        <tr>
          <td><code translate="no" dir="ltr"><a href="/reference/java/lang/IllegalStateException">IllegalStateException</a></code></td>
          <td width="100%">if the value is not a list value</td>
        </tr>
      </table>
  

</div>

<div data-version-added="26">
    <h3 class="api-name" id="getTextValue()" data-text="getTextValue">getTextValue</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public <a href="/reference/java/lang/CharSequence">CharSequence</a> getTextValue ()</pre>
    
    

    
  <p>Gets the value to autofill a text field.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_TEXT">View#AUTOFILL_TYPE_TEXT</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/CharSequence">CharSequence</a></code></td>
        <td width="100%">This value cannot be <code translate="no" dir="ltr">null</code>.</p></td>
      </tr>
    </table>
      <table class="responsive">
      <tr><th colspan=2>Throws</th></tr>
        <tr>
          <td><code translate="no" dir="ltr"><a href="/reference/java/lang/IllegalStateException">IllegalStateException</a></code></td>
          <td width="100%">if the value is not a text value</td>
        </tr>
      </table>
  

</div>

<div data-version-added="26">
    <h3 class="api-name" id="getToggleValue()" data-text="getToggleValue">getToggleValue</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public boolean getToggleValue ()</pre>
    
    

    
  <p>Gets the value to autofill a toggable field.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_TOGGLE">View#AUTOFILL_TYPE_TOGGLE</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">boolean</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>
      <table class="responsive">
      <tr><th colspan=2>Throws</th></tr>
        <tr>
          <td><code translate="no" dir="ltr"><a href="/reference/java/lang/IllegalStateException">IllegalStateException</a></code></td>
          <td width="100%">if the value is not a toggle value</td>
        </tr>
      </table>
  

</div>

<div data-version-added="26">
    <h3 class="api-name" id="hashCode()" data-text="hashCode">hashCode</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public int hashCode ()</pre>
    
    

    
  <p>Returns a hash code value for the object. This method is
 supported for the benefit of hash tables such as those provided by
 <code translate="no" dir="ltr"><a href="/reference/java/util/HashMap">HashMap</a></code>.
 <p>
 The general contract of <code translate="no" dir="ltr">hashCode</code> is:
 <ul>
 <li>Whenever it is invoked on the same object more than once during
     an execution of a Java application, the <code translate="no" dir="ltr">hashCode</code> method
     must consistently return the same integer, provided no information
     used in <code translate="no" dir="ltr">equals</code> comparisons on the object is modified.
     This integer need not remain consistent from one execution of an
     application to another execution of the same application.
 <li>If two objects are equal according to the <code translate="no" dir="ltr">equals(Object)</code>
     method, then calling the <code translate="no" dir="ltr">hashCode</code> method on each of
     the two objects must produce the same integer result.
 <li>It is <em>not</em> required that if two objects are unequal
     according to the <code translate="no" dir="ltr"><a href="/reference/java/lang/Object#equals(java.lang.Object)">equals(java.lang.Object)</a></code>
     method, then calling the <code translate="no" dir="ltr">hashCode</code> method on each of the
     two objects must produce distinct integer results.  However, the
     programmer should be aware that producing distinct integer results
     for unequal objects may improve the performance of hash tables.
 </ul>
 <p>
 As much as is reasonably practical, the hashCode method defined
 by class <code translate="no" dir="ltr">Object</code> does return distinct integers for
 distinct objects. (The hashCode may or may not be implemented
 as some function of an object's memory address at some point
 in time.)</p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">a hash code value for this object.</p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="isDate()" data-text="isDate">isDate</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public boolean isDate ()</pre>
    
    

    
  <p>Checks if this is a date value.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_DATE">View#AUTOFILL_TYPE_DATE</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">boolean</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="isList()" data-text="isList">isList</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public boolean isList ()</pre>
    
    

    
  <p>Checks if this is a list value.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_LIST">View#AUTOFILL_TYPE_LIST</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">boolean</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="isText()" data-text="isText">isText</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public boolean isText ()</pre>
    
    

    
  <p>Checks if this is a text value.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_TEXT">View#AUTOFILL_TYPE_TEXT</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">boolean</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="isToggle()" data-text="isToggle">isToggle</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public boolean isToggle ()</pre>
    
    

    
  <p>Checks if this is a toggle value.

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/view/View#AUTOFILL_TYPE_TOGGLE">View#AUTOFILL_TYPE_TOGGLE</a></code> for more info.</p></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">boolean</code></td>
        <td width="100%"><!-- no returns description in source --></p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="toString()" data-text="toString">toString</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public <a href="/reference/java/lang/String">String</a> toString ()</pre>
    
    

    
  <p>Returns a string representation of the object. In general, the
 <code translate="no" dir="ltr">toString</code> method returns a string that
 "textually represents" this object. The result should
 be a concise but informative representation that is easy for a
 person to read.
 It is recommended that all subclasses override this method.
 <p>
 The <code translate="no" dir="ltr">toString</code> method for class <code translate="no" dir="ltr">Object</code>
 returns a string consisting of the name of the class of which the
 object is an instance, the at-sign character `<code translate="no" dir="ltr">@</code>', and
 the unsigned hexadecimal representation of the hash code of the
 object. In other words, this method returns a string equal to the
 value of:
 <blockquote>
 <pre translate="no" dir="ltr">
 getClass().getName() + '@' + Integer.toHexString(hashCode())
 </pre></blockquote></p></p>
    <table class="responsive">
      <tr><th colspan=2>Returns</th></tr>
      <tr>
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">a string representation of the object.</p></td>
      </tr>
    </table>

</div>

<div data-version-added="26">
    <h3 class="api-name" id="writeToParcel(android.os.Parcel,%20int)" data-text="writeToParcel">writeToParcel</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 26</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public void writeToParcel (<a href="/reference/android/os/Parcel">Parcel</a> parcel, 
                int flags)</pre>
    
    

    
  <p>Flatten this object in to a Parcel.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">parcel</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">Parcel</code>: The Parcel in which the object should be written.
 This value cannot be <code translate="no" dir="ltr">null</code>.</p></td>
      </tr>
      <tr>
        <td><code translate="no" dir="ltr">flags</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">int</code>: Additional flags about how the object should be written.
 May be 0 or <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE">Parcelable.PARCELABLE_WRITE_RETURN_VALUE</a></code>.
 
 Value is either <code translate="no" dir="ltr">0</code> or a combination of <code translate="no" dir="ltr"><a href="/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE">Parcelable.PARCELABLE_WRITE_RETURN_VALUE</a></code>, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES</p></td>
      </tr>
    </table>

</div>





<!-- ========= METHOD DETAIL ======== -->



<!-- ========= END OF CLASS DATA ========= -->

</div><!-- end jd-content -->


</div><!-- end devsite ReferenceObject -->

  

  
    <devsite-hats-survey class="nocontent"
      hats-id="onAFgYxTD0kxBYCLVTd0Z41p75CM"
      listnr-id="5207477"></devsite-hats-survey>
  
</div>

  

  
    
      <devsite-recommendations display="in-page" hidden yield>
      </devsite-recommendations>
    
    
      
    <devsite-thumb-rating position="footer">
    </devsite-thumb-rating>
  
       
    
    
      <devsite-recommendations id="recommendations-link" yield></devsite-recommendations>
    
  

  
  
</article>


<devsite-content-footer class="nocontent">
  <p>Content and code samples on this page are subject to the licenses described in the <a href="/license">Content License</a>. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.</p>
  <p>Last updated 2023-02-08 UTC.</p>
</devsite-content-footer>


<devsite-notification
>
</devsite-notification>


  
<div class="devsite-content-data">
  <template class="devsite-thumb-rating-down-categories">
  [{
      "type": "thumb-down",
      "id": "missingTheInformationINeed",
      "label":"Missing the information I need"
    },{
      "type": "thumb-down",
      "id": "tooComplicatedTooManySteps",
      "label":"Too complicated / too many steps"
    },{
      "type": "thumb-down",
      "id": "outOfDate",
      "label":"Out of date"
    },{
      "type": "thumb-down",
      "id": "samplesCodeIssue",
      "label":"Samples / code issue"
    },{
      "type": "thumb-down",
      "id": "otherDown",
      "label":"Other"
    }]
  </template>
  <template class="devsite-thumb-rating-up-categories">
  [{
      "type": "thumb-up",
      "id": "easyToUnderstand",
      "label":"Easy to understand"
    },{
      "type": "thumb-up",
      "id": "solvedMyProblem",
      "label":"Solved my problem"
    },{
      "type": "thumb-up",
      "id": "otherUp",
      "label":"Other"
    }]
  </template>
  
</div>
            
          </devsite-content>
        </main>
        <devsite-footer-promos class="devsite-footer">
          
            

<nav class="devsite-footer-promos nocontent" aria-label="Promotions">
  <ul class="devsite-footer-promos-list">
    
    <li class="devsite-footer-promo">
      <a href="//x.com/AndroidDev"
         class="devsite-footer-promo-title gc-analytics-event"
         data-category="Site-Wide Custom Events"
       
       
         data-label="Footer X Promo"
       >
        
        
          
            <img class="devsite-footer-promo-icon"
                 src="/_static/android/images/logo-x.svg"
                 loading="lazy"
                 alt="X">
          
        
        X
      </a>
      <div class="devsite-footer-promo-description">Follow @AndroidDev on X</div>
    </li>
    
    <li class="devsite-footer-promo">
      <a href="//www.youtube.com/user/androiddevelopers"
         class="devsite-footer-promo-title gc-analytics-event"
         data-category="Site-Wide Custom Events"
       
       
         data-label="Footer YouTube Promo"
       >
        
        
          
            <img class="devsite-footer-promo-icon"
                 src="//www.gstatic.com/images/icons/material/product/2x/youtube_48dp.png"
                 loading="lazy"
                 alt="YouTube">
          
        
        YouTube
      </a>
      <div class="devsite-footer-promo-description">Check out Android Developers on YouTube</div>
    </li>
    
    <li class="devsite-footer-promo">
      <a href="//www.linkedin.com/showcase/androiddev"
         class="devsite-footer-promo-title gc-analytics-event"
         data-category="Site-Wide Custom Events"
       
       
         data-label="Footer LinkedIn Promo"
       >
        
        
          
            <img class="devsite-footer-promo-icon"
                 src="/_static/android/images/logo-linkedin.svg"
                 loading="lazy"
                 alt="LinkedIn">
          
        
        LinkedIn
      </a>
      <div class="devsite-footer-promo-description">Connect with the Android Developers community on LinkedIn</div>
    </li>
    
  </ul>
</nav>

          
        </devsite-footer-promos>
        <devsite-footer-linkboxes class="devsite-footer">
          
            
<nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links">
  
  <ul class="devsite-footer-linkboxes-list">
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">More Android</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//www.android.com"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Android
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//www.android.com/enterprise/"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Android for Enterprise
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//www.android.com/security-center/"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Security
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//source.android.com"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Source
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/news"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
          
            News
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//android-developers.googleblog.com/"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 6)"
            >
            
          
            Blog
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/podcasts"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 7)"
            >
            
              
              
            
          
            Podcasts
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Discover</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/games"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Gaming
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/ml"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Machine Learning
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/privacy"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Privacy
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/training/connectivity/5g"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
              
              
            
          
            5G
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Android Devices</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/large-screens"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Large screens
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/wear"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Wear OS
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/chrome-os"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            ChromeOS devices
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/cars"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Android for cars
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/things"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
          
            Android Things
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/tv"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 6)"
            >
            
              
              
            
          
            Android TV
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Releases</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/13"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Android 13
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/12"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Android 12
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/11"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Android 11
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/10"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Android 10
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/pie"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
          
            Pie
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/oreo"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 6)"
            >
            
          
            Oreo
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/nougat"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 7)"
            >
            
              
              
            
          
            Nougat
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Documentation and Downloads</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/studio/intro"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Android Studio guide
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/guide"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Developers guides
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/reference"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            API reference
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/studio"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Download Studio
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/ndk"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
              
              
            
          
            Android NDK
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Support</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//issuetracker.google.com/issues/new?component=190923&amp;template=841312"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Report platform bug
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//issuetracker.google.com/issues/new?component=192697"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Report documentation bug
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//support.google.com/googleplay/android-developer"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Google Play support
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="https://g.co/userresearch/androiddeveloperfooter"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
              
              
            
          
            Join research studies
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
  </ul>
  
</nav>
          
        </devsite-footer-linkboxes>
        <devsite-footer-utility class="devsite-footer">
          
            

<div class="devsite-footer-utility nocontent">
  
  
  <nav class="devsite-footer-sites" aria-label="Other Google Developers websites">
    <a href="https://developers.google.com/"
       class="devsite-footer-sites-logo-link gc-analytics-event"
       data-category="Site-Wide Custom Events"
       data-label="Footer Google Developers Link">
      <picture>
        <source srcset="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/lockup-google-for-developers-dark-theme.svg"
                media="(prefers-color-scheme: none)"
                class="devsite-dark-theme"
                loading="lazy"
                alt="Google Developers">
        <img class="devsite-footer-sites-logo"
             src="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/lockup-google-for-developers.svg"
             loading="lazy"
             alt="Google Developers">
      </picture>
    </a>
    <ul class="devsite-footer-sites-list">
      
      <li class="devsite-footer-sites-item">
        <a href="//developer.android.com"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Android Link"
         
         >
          Android
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//developer.chrome.com/home"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Chrome Link"
         
         >
          Chrome
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//firebase.google.com"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Firebase Link"
         
         >
          Firebase
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//cloud.google.com"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Google Cloud Platform Link"
         
         >
          Google Cloud Platform
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//developers.google.com/products/"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer All products Link"
         
         >
          All products
        </a>
      </li>
      
    </ul>
  </nav>
  

  
  <nav class="devsite-footer-utility-links" aria-label="Utility links">
    
    <ul class="devsite-footer-utility-list">
      
      <li class="devsite-footer-utility-item
                 ">
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="//policies.google.com/privacy"
           data-category="Site-Wide Custom Events"
           data-label="Footer Privacy link"
         >
          Privacy
        </a>
        
      </li>
      
      <li class="devsite-footer-utility-item
                 ">
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="/license"
           data-category="Site-Wide Custom Events"
           data-label="Footer License link"
         >
          License
        </a>
        
      </li>
      
      <li class="devsite-footer-utility-item
                 ">
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="/distribute/marketing-tools/brand-guidelines"
           data-category="Site-Wide Custom Events"
           data-label="Footer Brand guidelines link"
         >
          Brand guidelines
        </a>
        
      </li>
      
      <li class="devsite-footer-utility-item
                 devsite-footer-utility-button">
        
        <span class="devsite-footer-utility-description">Get news and tips by email</span>
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="/updates"
           data-category="Site-Wide Custom Events"
           data-label="Footer Subscribe link"
         >
          Subscribe
        </a>
        
      </li>
      
    </ul>
    
    
<devsite-language-selector>
  <ul role="presentation">
    
    
    <li role="presentation">
      <a role="menuitem" lang="en"
        >English</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="es_419"
        >Español – América Latina</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="id"
        >Indonesia</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="pt_br"
        >Português – Brasil</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="zh_cn"
        >中文 – 简体</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="ja"
        >日本語</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="ko"
        >한국어</a>
    </li>
    
  </ul>
</devsite-language-selector>

  </nav>
</div>
          
        </devsite-footer-utility>
        <devsite-panel></devsite-panel>
        
      </section></section>
    <devsite-sitemask></devsite-sitemask>
    <devsite-snackbar
    
    >
</devsite-snackbar>
    <devsite-tooltip ></devsite-tooltip>
    <devsite-heading-link></devsite-heading-link>
    <devsite-analytics analytics-iframe>
      
        <script type="application/json" analytics>[{&#34;dimensions&#34;: {&#34;dimension11&#34;: false, &#34;dimension1&#34;: &#34;Signed out&#34;, &#34;dimension3&#34;: false, &#34;dimension4&#34;: &#34;Android Developers&#34;, &#34;dimension6&#34;: &#34;en&#34;, &#34;dimension5&#34;: &#34;en&#34;}, &#34;gaid&#34;: &#34;UA-5831155-1&#34;, &#34;metrics&#34;: {&#34;ratings_value&#34;: &#34;metric1&#34;, &#34;ratings_count&#34;: &#34;metric2&#34;}}]</script>
<script type="application/json" tag-management>{&#34;ga4&#34;: [], &#34;ga4p&#34;: [], &#34;gtm&#34;: [&#34;GTM-KMSWPCJ&#34;], &#34;parameters&#34;: {&#34;internalUser&#34;: &#34;False&#34;, &#34;language&#34;: {&#34;machineTranslated&#34;: &#34;False&#34;, &#34;requested&#34;: &#34;en&#34;, &#34;served&#34;: &#34;en&#34;}, &#34;pageType&#34;: &#34;reference&#34;, &#34;projectName&#34;: &#34;Android Developers&#34;, &#34;signedIn&#34;: &#34;False&#34;, &#34;tenant&#34;: &#34;android&#34;, &#34;recommendations&#34;: {&#34;sourcePage&#34;: &#34;&#34;, &#34;sourceType&#34;: 0, &#34;sourceRank&#34;: 0, &#34;sourceIdenticalDescriptions&#34;: 0, &#34;sourceTitleWords&#34;: 0, &#34;sourceDescriptionWords&#34;: 0, &#34;experiment&#34;: &#34;&#34;}, &#34;experiment&#34;: {&#34;ids&#34;: &#34;&#34;}}, &#34;tags&#34;: [&#34;GTM-KMSWPCJ&#34;]}</script>
      
    </devsite-analytics>
    
      <devsite-badger></devsite-badger>
    
    
<android-fully-clickable
    target="
        .android-case-study .devsite-landing-row-item,
        .android-grouped-resources .devsite-landing-row-item,
        .android-illustrated-resources-index .devsite-landing-row-item,
        .android-illustrated-resources-primary .devsite-landing-row-item,
        .android-illustrated-resources-secondary .devsite-landing-row-item,
        .android-illustrated-resources-secondary-small .devsite-landing-row-item,
        .android-illustrated-resources-tertiary .devsite-landing-row-item,
        .android-illustrated-resources-tertiary-small .devsite-landing-row-item,
        .android-promo .devsite-landing-row-item,
        .android-quick-link,
        .android-samples .devsite-card-wrapper,
        .fully-clickable"
    watch=".android-samples, devsite-content"></android-fully-clickable>
    <script nonce="Uf5JYTCIyqD5m/+/mb5rBlKeE98dbe">
  
  (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i;
    t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0];
    E.parentNode.insertBefore(t,E);})(window, document, 'script',
    'https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/js/app_loader.js', '[3,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android","https://android-dot-devsite-v2-prod.appspot.com",null,null,["/_pwa/android/manifest.json","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/favicon.svg","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/lockup.svg","https://fonts.googleapis.com/css?family=Google+Sans:400,500,600,700|Google+Sans+Text:400,400italic,500,500italic,600,600italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,40,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,111,112,113,115,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,144,147,148,149,150,151,152,154,155,156,157,158,159,161,163,164,165,168,169,170,172,173,179,180,182,183,186,190,191,193,196],"AIzaSyAP-jjEJBzmIyKR4F-3XITp8yM9T1gEEI8","AIzaSyB6xiKGDR5O3Ak2okS4rLkauxGUG7XP0hg","developer.android.com","AIzaSyAQk0fBONSGUqCNznf6Krs82Ap1-NV6J4o","AIzaSyCCxcqdrZ_7QMeLCRY20bh_SXdAYqy70KY",null,null,null,["Profiles__enable_public_developer_profiles","Search__enable_suggestions_from_borg","Profiles__require_profile_eligibility_for_signin","Search__enable_page_map","OpenInReplit__enable_replit","Concierge__enable_pushui","MiscFeatureFlags__enable_keyword_inheritance","Experiments__reqs_query_experiments","Profiles__enable_awarding_url","Profiles__enable_developer_profiles_interests","Profiles__enable_profile_notifications_ui","Badges__enable_delete_badges","Significatio__enable_footprints","Rebranding__enable_rebranding","ContentExcellence__enable_verified_date","MiscFeatureFlags__developers_footer_image","Cloud__enable_cloud_dlp_service","Profiles__enable_page_saving","Badges__enable_drag_and_drop_badges","MiscFeatureFlags__developers_footer_dark_image","Cloud__enable_cloud_shell_fte_user_flow","BookNav__enable_collapsible_book_nav","Profiles__enable_developer_profiles_callout","Experiments__enable_experiments","Search__enable_acl_suggestions","Cloud__enable_cloudx_ping","Search__enable_faceted_search","AuthorPageInsights__enable_author_page_insights","Profiles__enable_developer_profiles_dashboard_recommendations","Significatio__enable_experiment_id_caching","Profiles__enable_inferred_interests","MiscFeatureFlags__enable_project_variables","Badges__enable_hide_badges","Profiles__enable_profile_communities","Cloud__enable_free_trial_server_call","Profiles__enable_searchable_interests","Cloud__enable_cloudx_experiment_ids","SignIn__enable_auto_signin_oauth","Search__enable_devsite_serp","MiscFeatureFlags__enable_explain_this_code","Profiles__enable_profile_collections","MiscFeatureFlags__emergency_css","Cloud__enable_cloud_shell","Search__enable_dynamic_content_confidential_banner","Localization__enable_locale_redirects","MiscFeatureFlags__enable_firebase_utm","Profiles__enable_suggested_interests","BookNav__enable_book_nav_filtering","Cloud__enable_cloud_facet_chat","ContentExcellence__enable_googler_button","Significatio__enable_by_tenant","MiscFeatureFlags__enable_tls_version_for_gaia_calls","BookNav__enable_tenant_cache_key","MiscFeatureFlags__content_publisher_push_queue"],null,null,"AIzaSyBLEMok-5suZ67qRPzx0qUtbnLmyT_kCVE","https://developerscontentserving-pa.googleapis.com","AIzaSyCM4QpTRSqP5qI4Dvjt4OAScIN8sOUlO-k","https://developerscontentsearch-pa.googleapis.com",2]')
  
</script>
    <devsite-a11y-announce></devsite-a11y-announce>
  </body>
</html>